package com.aspose.cells;

import java.util.ArrayList;
import java.util.Collection;

class zbnv {
   private Object f;
   private Workbook g;
   private Bevel h;
   private Bevel i;
   private int j;
   zakp a;
   zakp b;
   int c;
   int d;
   private ArrayList k;
   int e;

   zbnv(Workbook var1, Object var2) {
      this.g = var1;
      this.f = var2;
      this.j = 14;
   }

   Bevel a() {
      return this.h;
   }

   public Bevel b() {
      if (this.h == null) {
         this.h = new Bevel();
      }

      return this.h;
   }

   Bevel c() {
      return this.i;
   }

   Bevel d() {
      if (this.i == null) {
         this.i = new Bevel();
      }

      return this.i;
   }

   public int e() {
      return this.j;
   }

   public void a(int var1) {
      this.j = var1;
   }

   void a(zbnv var1) {
      this.e = var1.e;
      if (var1.k != null) {
         this.k = new ArrayList();
         com.aspose.cells.b.a.a.ze.a(this.k, (Collection)var1.k);
      }

      this.c = var1.c;
      this.d = var1.d;
      if (var1.a != null) {
         this.a = new zakp(true);
         this.a.f(var1.a);
      }

      if (var1.b != null) {
         this.b = new zakp(true);
         this.b.f(var1.b);
      }

      this.j = var1.j;
      if (var1.i != null) {
         this.i = new Bevel();
         this.i.a(var1.i);
      }

      if (var1.h != null) {
         this.h = new Bevel();
         this.h.a(var1.h);
      }

   }

   boolean b(zbnv var1) {
      if (this.e != var1.e) {
         return false;
      } else {
         if (this.k != null || var1.k != null) {
            if (this.k == null || var1.k == null) {
               return false;
            }

            if (this.k.size() != var1.k.size()) {
               return false;
            }
         }

         if (this.c != var1.c) {
            return false;
         } else if (this.d != var1.d) {
            return false;
         } else {
            if (this.a != null || var1.a != null) {
               if (this.a == null || var1.a == null) {
                  return false;
               }

               if (!this.a.g(var1.a)) {
                  return false;
               }
            }

            if (this.b != null || var1.b != null) {
               if (this.b == null || var1.b == null) {
                  return false;
               }

               if (!this.b.g(var1.b)) {
                  return false;
               }
            }

            if (this.j != var1.j) {
               return false;
            } else {
               if (this.i != null || var1.i != null) {
                  if (this.i == null || var1.i == null) {
                     return false;
                  }

                  if (!this.i.b(var1.i)) {
                     return false;
                  }
               }

               if (this.h != null || var1.h != null) {
                  if (this.h == null || var1.h == null) {
                     return false;
                  }

                  if (!this.h.b(var1.h)) {
                     return false;
                  }
               }

               return true;
            }
         }
      }
   }
}
